﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using WebInstagram.Models;

namespace WebInstagram.DAL
{
    public class CommentsRepository : Repository<Comment>
    {
        public List<Comment> GetPhotoComments(int ID)
        {
            var comments = Table.Where(l => l.PhotoID == ID).ToList();
            return comments;
        }

    }
}